Allow libvirt to specify force, rm_cfg
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:31:39 +0000 (11:31 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:31:39 +0000 (11:31 +0000)
When doing a 'virsh detach-disk' on a running domain, the disk is not
removed from the configuration file.  Allow a caller to specify
whether or not to change the file.

Signed-off-by: Ryan Scott <ryan.scott@sun.com>
tools/python/xen/xend/server/SrvDomain.py

index ee9f2d4a7d35647c3b662e99e7d21b51089a49b8..30d2b3420bf9882ccbe32352afeaa225521a376e 100644 (file)
@@ -187,7 +187,9 @@ class SrvDomain(SrvDir):
     def op_device_destroy(self, _, req):
         return self.call(self.dom.destroyDevice,
                          [['type', 'str'],
-                          ['dev',  'str']],
+                          ['dev',  'str'],
+                          ['force',  'int'],
+                          ['rm_cfg',  'int']],
                          req)
                 
     def op_device_configure(self, _, req):